package com.larly.model.dto.privatemessage;

import com.baomidou.mybatisplus.annotation.TableName;
import com.larly.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 私信表
 *
 * @TableName private_message
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PrivateMessageSelectRequest extends PageRequest implements Serializable {

    /**
     * 接收者ID
     */
    @NotNull(message = "接收者ID不能为空")
    private Integer receiverId;

    private static final long serialVersionUID = 1L;
}